package com.shanzhu.book.service;

import com.shanzhu.book.model.Notice;

import java.util.List;
import java.util.Map;

public interface NoticeService {

    void saveNotice(String token, Notice notice);

    Notice getNotice(String token);

    void removeNotice(String token);


    Integer getCount();

    List<Notice> queryNotices();

    int getSearchCount(Map<String, Object> searchParam);

    List<Notice> searchNoticesByPage(Map<String, Object> params);

    Integer addNotice(Notice notice);

    Integer deleteNotice(Notice notice);

    Integer deleteNotices(List<Notice> notices);

    Integer updateNotice(Notice notice);
}
